package com.hpl.singletonmode.singleton;

/**
 * 懒汉模式（线程不安全）
 *
 * @author hpl
 * @since 2023/1/16
 */
public class SingletonLazy {

    private static SingletonLazy instance;

    private SingletonLazy(){

    }

    @SuppressWarnings("all")
    public static SingletonLazy getInstance(){
        if (instance == null){
            instance = new SingletonLazy();
        }
        return instance;
    }
}
